// ****************************************************************************** 
// Copyright     :  Copyright (C) 2018, Hisilicon Technologies Co. Ltd.
// File name     :  vctrl_reg_offset_field.h
// Project line  :  K3
// Department    :  K3
// Author        :  Huawei
// Version       :  V100
// Date          :  2015/4/10
// Description   :  HiVcodecV100 VDEC
// Others        :  Generated automatically by nManager V4.2 
// History       :  Huawei 2018/04/10 10:02:43 Create file
// ******************************************************************************

#ifndef __VCTRL_REG_OFFSET_FIELD_H__
#define __VCTRL_REG_OFFSET_FIELD_H__

#define VCTRL_DEC_START_LEN    1
#define VCTRL_DEC_START_OFFSET 0

#define VCTRL_SLC_GRP_START_LEN    1
#define VCTRL_SLC_GRP_START_OFFSET 0

#define VCTRL_VDH_SAFE_FLAG_LEN           1
#define VCTRL_VDH_SAFE_FLAG_OFFSET        31
#define VCTRL_LD_QMATRIX_FLAG_LEN         1
#define VCTRL_LD_QMATRIX_FLAG_OFFSET      30
#define VCTRL_LUMA_HISTOGRAM_EN_LEN       1
#define VCTRL_LUMA_HISTOGRAM_EN_OFFSET    29
#define VCTRL_LUMA_SUM_EN_LEN             1
#define VCTRL_LUMA_SUM_EN_OFFSET          28
#define VCTRL_WORK_MODE_LEN               2
#define VCTRL_WORK_MODE_OFFSET            26
#define VCTRL_VOP_TYPE_DETECT_EN_LEN      1
#define VCTRL_VOP_TYPE_DETECT_EN_OFFSET   25
#define VCTRL_COEF_IDX_DETECT_EN_LEN      1
#define VCTRL_COEF_IDX_DETECT_EN_OFFSET   24
#define VCTRL_AC_LAST_DETECT_EN_LEN       1
#define VCTRL_AC_LAST_DETECT_EN_OFFSET    23
#define VCTRL_MARKER_BIT_DETECT_EN_LEN    1
#define VCTRL_MARKER_BIT_DETECT_EN_OFFSET 22
#define VCTRL_SLC_GRP_MODE_LEN            1
#define VCTRL_SLC_GRP_MODE_OFFSET         20
#define VCTRL_MBAMT_TO_DEC_LEN            20
#define VCTRL_MBAMT_TO_DEC_OFFSET         0

#define VCTRL_PPFD_EN_LEN           1
#define VCTRL_PPFD_EN_OFFSET        31
#define VCTRL_COMPRESS_EN_LEN       1
#define VCTRL_COMPRESS_EN_OFFSET    30
#define VCTRL_DBLK_1D_EN_LEN        1
#define VCTRL_DBLK_1D_EN_OFFSET     29
#define VCTRL_LINE_NUM_OEN_LEN      1
#define VCTRL_LINE_NUM_OEN_OFFSET   28
#define VCTRL_MAX_SLCGRP_NUM_LEN    12
#define VCTRL_MAX_SLCGRP_NUM_OFFSET 16
#define VCTRL_MV_OUTPUT_EN_LEN      1
#define VCTRL_MV_OUTPUT_EN_OFFSET   15
#define VCTRL_FST_SLC_GRP_LEN       1
#define VCTRL_FST_SLC_GRP_OFFSET    14
#define VCTRL_UV_ORDER_EN_LEN       1
#define VCTRL_UV_ORDER_EN_OFFSET    13
#define VCTRL_MFD_MMU_EN_LEN        1
#define VCTRL_MFD_MMU_EN_OFFSET     12
#define VCTRL_VPSS_INFO_EN_LEN      1
#define VCTRL_VPSS_INFO_EN_OFFSET   11
#define VCTRL_WATERMARK_EN_LEN      1
#define VCTRL_WATERMARK_EN_OFFSET   10
#define VCTRL_CFG1_RESERVED_LEN     6
#define VCTRL_CFG1_RESERVED_OFFSET  4
#define VCTRL_VIDEO_STANDARD_LEN    4
#define VCTRL_VIDEO_STANDARD_OFFSET 0

#define VCTRL_AV_MSG_ADDR_LEN    32
#define VCTRL_AV_MSG_ADDR_OFFSET 0

#define VCTRL_VA_MSG_ADDR_LEN    32
#define VCTRL_VA_MSG_ADDR_OFFSET 0

#define VCTRL_STREAM_BASE_ADDR_LEN    32
#define VCTRL_STREAM_BASE_ADDR_OFFSET 0

#define VCTRL_SAFE_INTRS_VDH_PART_DEC_OVER_LEN    1
#define VCTRL_SAFE_INTRS_VDH_PART_DEC_OVER_OFFSET 22
#define VCTRL_SAFE_INTRS_VDH_DEC_ERR_LEN          1
#define VCTRL_SAFE_INTRS_VDH_DEC_ERR_OFFSET       21
#define VCTRL_SAFE_INTRS_VDH_DEC_OVER_LEN         1
#define VCTRL_SAFE_INTRS_VDH_DEC_OVER_OFFSET      20
#define VCTRL_INTRS_VDH_PART_DEC_OVER_LEN         1
#define VCTRL_INTRS_VDH_PART_DEC_OVER_OFFSET      19
#define VCTRL_INTRS_VDH_DEC_ERR_LEN               1
#define VCTRL_INTRS_VDH_DEC_ERR_OFFSET            18
#define VCTRL_INTRS_VDH_DEC_OVER_LEN              1
#define VCTRL_INTRS_VDH_DEC_OVER_OFFSET           17
#define VCTRL_DECODED_SLICE_NUM_LEN               17
#define VCTRL_DECODED_SLICE_NUM_OFFSET            0

#define VCTRL_NORM_INTRMS_VDH_PART_DEC_OVER_LEN    1
#define VCTRL_NORM_INTRMS_VDH_PART_DEC_OVER_OFFSET 2
#define VCTRL_NORM_INTRMS_VDH_DEC_ERR_LEN          1
#define VCTRL_NORM_INTRMS_VDH_DEC_ERR_OFFSET       1
#define VCTRL_NORM_INTRMS_VDH_DEC_OVER_LEN         1
#define VCTRL_NORM_INTRMS_VDH_DEC_OVER_OFFSET      0

#define VCTRL_NORM_INTM_VDH_PART_DEC_OVER_LEN    1
#define VCTRL_NORM_INTM_VDH_PART_DEC_OVER_OFFSET 2
#define VCTRL_NORM_INTM_VDH_DEC_ERR_LEN          1
#define VCTRL_NORM_INTM_VDH_DEC_ERR_OFFSET       1
#define VCTRL_NORM_INTM_VDH_DEC_OVER_LEN         1
#define VCTRL_NORM_INTM_VDH_DEC_OVER_OFFSET      0

#define VCTRL_VCTRL_STATE_LEN    10
#define VCTRL_VCTRL_STATE_OFFSET 0

#define VCTRL_VDH_VERSION_ID_LEN    32
#define VCTRL_VDH_VERSION_ID_OFFSET 0

#define VCTRL_CFMW_RESERVED_LEN        20
#define VCTRL_CFMW_RESERVED_OFFSET     12
#define VCTRL_LST_MSQ_MB_NUM_LEN       4
#define VCTRL_LST_MSQ_MB_NUM_OFFSET    8
#define VCTRL_MB_OFFSET_THR_LEN        4
#define VCTRL_MB_OFFSET_THR_OFFSET     4
#define VCTRL_Y_DCMP_RATE_MODE_LEN     2
#define VCTRL_Y_DCMP_RATE_MODE_OFFSET  2
#define VCTRL_UV_DCMP_RATE_MODE_LEN    2
#define VCTRL_UV_DCMP_RATE_MODE_OFFSET 0

#define VCTRL_MAX_CNT_OTHER_LEN      5
#define VCTRL_MAX_CNT_OTHER_OFFSET   15
#define VCTRL_MAX_CNT_PRC_LEN        5
#define VCTRL_MAX_CNT_PRC_OFFSET     10
#define VCTRL_MAX_CNT_DBLK_WR_LEN    5
#define VCTRL_MAX_CNT_DBLK_WR_OFFSET 5
#define VCTRL_MAX_CNT_DBLK_RD_LEN    5
#define VCTRL_MAX_CNT_DBLK_RD_OFFSET 0

#define VCTRL_VCTRL_WR_TO_LEN    10
#define VCTRL_VCTRL_WR_TO_OFFSET 10
#define VCTRL_VCTRL_RD_TO_LEN    10
#define VCTRL_VCTRL_RD_TO_OFFSET 0

#define VCTRL_SED_WR_TOP_TO_LEN       10
#define VCTRL_SED_WR_TOP_TO_OFFSET    20
#define VCTRL_SED_RD_TOP_TO_LEN       10
#define VCTRL_SED_RD_TOP_TO_OFFSET    10
#define VCTRL_SED_RD_STREAM_TO_LEN    10
#define VCTRL_SED_RD_STREAM_TO_OFFSET 0

#define VCTRL_IT_WR_TO_LEN    10
#define VCTRL_IT_WR_TO_OFFSET 10
#define VCTRL_IT_RD_TO_LEN    10
#define VCTRL_IT_RD_TO_OFFSET 0

#define VCTRL_PMV_WR_TO_LEN        10
#define VCTRL_PMV_WR_TO_OFFSET     20
#define VCTRL_PMV_RD_TOP_TO_LEN    10
#define VCTRL_PMV_RD_TOP_TO_OFFSET 10
#define VCTRL_PMV_RD_COL_TO_LEN    10
#define VCTRL_PMV_RD_COL_TO_OFFSET 0

#define VCTRL_PRC_RD_TO_LEN    10
#define VCTRL_PRC_RD_TO_OFFSET 0

#define VCTRL_RCN_WR_TO_LEN    10
#define VCTRL_RCN_WR_TO_OFFSET 10
#define VCTRL_RCN_RD_TO_LEN    10
#define VCTRL_RCN_RD_TO_OFFSET 0

#define VCTRL_DBLK_WR_TO_LEN    10
#define VCTRL_DBLK_WR_TO_OFFSET 10
#define VCTRL_DBLK_RD_TO_LEN    10
#define VCTRL_DBLK_RD_TO_OFFSET 0

#define VCTRL_PPFD_WR_BUF_TO_LEN      10
#define VCTRL_PPFD_WR_BUF_TO_OFFSET   20
#define VCTRL_PPFD_RD_BUF_TO_LEN      10
#define VCTRL_PPFD_RD_BUF_TO_OFFSET   10
#define VCTRL_PPFD_RD_SLICE_TO_LEN    10
#define VCTRL_PPFD_RD_SLICE_TO_OFFSET 0

#define VCTRL_FPGA_VERSION_ID_LEN    32
#define VCTRL_FPGA_VERSION_ID_OFFSET 0

#define VCTRL_PART_OVER_INT_LEVEL_LEN    32
#define VCTRL_PART_OVER_INT_LEVEL_OFFSET 0

#define VCTRL_YSTADDR_1D_LEN    32
#define VCTRL_YSTADDR_1D_OFFSET 0

#define VCTRL_YSTRIDE_RESERVED_LEN    12
#define VCTRL_YSTRIDE_RESERVED_OFFSET 20
#define VCTRL_YSTRIDE_1D_LEN          20
#define VCTRL_YSTRIDE_1D_OFFSET       0

#define VCTRL_UVOFFSET_1D_LEN    32
#define VCTRL_UVOFFSET_1D_OFFSET 0

#define VCTRL_HEAD_OFFSET_LEN    32
#define VCTRL_HEAD_OFFSET_OFFSET 0

#define VCTRL_LINE_NUM_STADDR_LEN    32
#define VCTRL_LINE_NUM_STADDR_OFFSET 0

#define VCTRL_YSTRIDE_2BIT_RESERVED_LEN    12
#define VCTRL_YSTRIDE_2BIT_RESERVED_OFFSET 20
#define VCTRL_YSTRIDE_2BIT_LEN             16
#define VCTRL_YSTRIDE_2BIT_OFFSET          4

#define VCTRL_YOFFSET_2BIT_LEN    32
#define VCTRL_YOFFSET_2BIT_OFFSET 0

#define VCTRL_UVOFFSET_2BIT_LEN    32
#define VCTRL_UVOFFSET_2BIT_OFFSET 0

#define VCTRL_YSTADDR_CMPA_LEN    32
#define VCTRL_YSTADDR_CMPA_OFFSET 0

#define VCTRL_YSTRIDE_CMPA_LEN    32
#define VCTRL_YSTRIDE_CMPA_OFFSET 0

#define VCTRL_UVOFFSET_CMPA_LEN    32
#define VCTRL_UVOFFSET_CMPA_OFFSET 0

#define VCTRL_HEAD_STRIDE_CMPA_LEN    32
#define VCTRL_HEAD_STRIDE_CMPA_OFFSET 0

#define VCTRL_BIT10_2BIT_DIS_LEN    1
#define VCTRL_BIT10_2BIT_DIS_OFFSET 1
#define VCTRL_LOSS_CMP_EN_LEN       1
#define VCTRL_LOSS_CMP_EN_OFFSET    0

#define VCTRL_HEAD_STADDR_CMPA_LEN    32
#define VCTRL_HEAD_STADDR_CMPA_OFFSET 0

#define VCTRL_CMPA_OTHER_BIT_LEN     26
#define VCTRL_CMPA_OTHER_BIT_OFFSET  6
#define VCTRL_SEMI_PLANAR_EN_LEN     1
#define VCTRL_SEMI_PLANAR_EN_OFFSET  5
#define VCTRL_CMPA_2BIT_DIS_LEN      1
#define VCTRL_CMPA_2BIT_DIS_OFFSET   4
#define VCTRL_BIT10_EXPAND_16_LEN    1
#define VCTRL_BIT10_EXPAND_16_OFFSET 3
#define VCTRL_AFBC_CMP_EN_LEN        1
#define VCTRL_AFBC_CMP_EN_OFFSET     2
#define VCTRL_CMPA_OUT_FORMAT_LEN    1
#define VCTRL_CMPA_OUT_FORMAT_OFFSET 1
#define VCTRL_AFBC_WORK_EN_LEN       1
#define VCTRL_AFBC_WORK_EN_OFFSET    0

#define VCTRL_VPSS_DOMN_CLK_CFG_LEN      2
#define VCTRL_VPSS_DOMN_CLK_CFG_OFFSET   20
#define VCTRL_VCTRL_DOMN_CLK_CFG_LEN     2
#define VCTRL_VCTRL_DOMN_CLK_CFG_OFFSET  18
#define VCTRL_CMP_DOMN_CLK_CFG_LEN       2
#define VCTRL_CMP_DOMN_CLK_CFG_OFFSET    16
#define VCTRL_SAO_DOMN_CLK_CFG_LEN       2
#define VCTRL_SAO_DOMN_CLK_CFG_OFFSET    14
#define VCTRL_DBLK_DOMN_CLK_CFG_LEN      2
#define VCTRL_DBLK_DOMN_CLK_CFG_OFFSET   12
#define VCTRL_RCN_DOMN_CLK_CFG_LEN       2
#define VCTRL_RCN_DOMN_CLK_CFG_OFFSET    10
#define VCTRL_PRF_DOMN_CLK_CFG_LEN       2
#define VCTRL_PRF_DOMN_CLK_CFG_OFFSET    8
#define VCTRL_PRC_DOMN_CLK_CFG_LEN       2
#define VCTRL_PRC_DOMN_CLK_CFG_OFFSET    6
#define VCTRL_PMV_DOMN_CLK_CFG_LEN       2
#define VCTRL_PMV_DOMN_CLK_CFG_OFFSET    4
#define VCTRL_ITRANS_DOMN_CLK_CFG_LEN    2
#define VCTRL_ITRANS_DOMN_CLK_CFG_OFFSET 2
#define VCTRL_SED_DOMN_CLK_CFG_LEN       2
#define VCTRL_SED_DOMN_CLK_CFG_OFFSET    0

#define VCTRL_WATERMARK_START_POS_LEN    32
#define VCTRL_WATERMARK_START_POS_OFFSET 0

#define VCTRL_WATERMARK_END_POS_LEN    32
#define VCTRL_WATERMARK_END_POS_OFFSET 0

#define VCTRL_SAFE_INTRMS_VDH_PART_DEC_OVER_LEN    1
#define VCTRL_SAFE_INTRMS_VDH_PART_DEC_OVER_OFFSET 2
#define VCTRL_SAFE_INTRMS_VDH_DEC_ERR_LEN          1
#define VCTRL_SAFE_INTRMS_VDH_DEC_ERR_OFFSET       1
#define VCTRL_SAFE_INTRMS_VDH_DEC_OVER_LEN         1
#define VCTRL_SAFE_INTRMS_VDH_DEC_OVER_OFFSET      0

#define VCTRL_SAFE_INTM_VDH_PART_DEC_OVER_LEN    1
#define VCTRL_SAFE_INTM_VDH_PART_DEC_OVER_OFFSET 2
#define VCTRL_SAFE_INTM_VDH_DEC_ERR_LEN          1
#define VCTRL_SAFE_INTM_VDH_DEC_ERR_OFFSET       1
#define VCTRL_SAFE_INTM_VDH_DEC_OVER_LEN         1
#define VCTRL_SAFE_INTM_VDH_DEC_OVER_OFFSET      0

#define VCTRL_DEC_CYCLEPERPIC_LEN    32
#define VCTRL_DEC_CYCLEPERPIC_OFFSET 0

#define VCTRL_RD_BDWIDTH_PERPIC_LEN    32
#define VCTRL_RD_BDWIDTH_PERPIC_OFFSET 0

#define VCTRL_WR_BDWIDTH_PERPIC_LEN    32
#define VCTRL_WR_BDWIDTH_PERPIC_OFFSET 0

#define VCTRL_RD_REQ_PERPIC_LEN    32
#define VCTRL_RD_REQ_PERPIC_OFFSET 0

#define VCTRL_WR_REQ_PERPIC_LEN    32
#define VCTRL_WR_REQ_PERPIC_OFFSET 0

#define VCTRL_UV_STRIDE_1D_LEN    20
#define VCTRL_UV_STRIDE_1D_OFFSET 0

#define VCTRL_CFGINFO_ADDR_LEN    32
#define VCTRL_CFGINFO_ADDR_OFFSET 0

#define VCTRL_VIDEO_STANDARD_EN_LEN    16
#define VCTRL_VIDEO_STANDARD_EN_OFFSET 0

#define VCTRL_CURRPICMB0QP_LEN    5
#define VCTRL_CURRPICMB0QP_OFFSET 0

#define VCTRL_SWITCHROUNDING_LEN    1
#define VCTRL_SWITCHROUNDING_OFFSET 0

#define VCTRL_RD_CNT_TOTAL[31:0]_LEN    32
#define VCTRL_RD_CNT_TOTAL[31:0]_OFFSET 0

#define VCTRL_RD_CNT_TOTAL[63:31]_LEN    32
#define VCTRL_RD_CNT_TOTAL[63:31]_OFFSET 0

#define VCTRL_WR_CNT_TOTAL[31:0]_LEN    32
#define VCTRL_WR_CNT_TOTAL[31:0]_OFFSET 0

#define VCTRL_WR_CNT_TOTAL[63:32]_LEN    32
#define VCTRL_WR_CNT_TOTAL[63:32]_OFFSET 0

#define VCTRL_EMAR_STATE2_LEN    32
#define VCTRL_EMAR_STATE2_OFFSET 0

#define VCTRL_EMAR_STATE3_LEN    32
#define VCTRL_EMAR_STATE3_OFFSET 0

#define VCTRL_EMAR_STATE4_LEN    32
#define VCTRL_EMAR_STATE4_OFFSET 0

#define VCTRL_HEAD_BYTE64_EN_LEN         1
#define VCTRL_HEAD_BYTE64_EN_OFFSET      3
#define VCTRL_DATA_BYTE64_EN_LEN         1
#define VCTRL_DATA_BYTE64_EN_OFFSET      2
#define VCTRL_DDR_INTERLEAVE_MODE_LEN    2
#define VCTRL_DDR_INTERLEAVE_MODE_OFFSET 0

#endif // __VCTRL_REG_OFFSET_FIELD_H__
